package net.ifilm.service;


import net.ifilm.dao.SiteApplyDao;
import net.ifilm.dao.SlideFilmDao;
import net.ifilm.entity.PageCount;
import net.ifilm.entity.SiteApply;
import net.ifilm.entity.SlideFilm;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 *
 */
@Component
public class SiteApplyService {

    @Autowired
    private SiteApplyDao siteApplyDao;

    // ------------------------------------------------------------------------------------------------ public method

    /**
     * 根据给出的条件查询对应的接入申请
     *
     * @return
     */
    public List<SiteApply> queryApplySite(Map<String, Object> parameter) {
        return siteApplyDao.queryApplySite(parameter);
    }

    /**
     * 增加一条接入申请
     *
     * @param siteApply
     */
    public void addSiteApply(SiteApply siteApply) {
        siteApplyDao.addSiteApply(siteApply);
    }

} ///:~
